/**
 *  @type flyComponentUtil omit
 *  @role 衣有道 fly-Util-omit
 *  @createDate Mr.Liu on 2017.06.16.17:53
 */

let assign;

if(Object.assign){
    assign = Object.assign;
}else{
    assign = require('object-assign');
}

function omit(obj, fields) {
    var copy = assign({}, obj);
    for (var i = 0; i < fields.length; i++) {
        var key = fields[i];
        delete copy[key];
    }
    return copy;
};

export {omit};